package com.jsz.yun.ai.field.exception;

/**
 * @author gaoxing
 * @date 2025-03-26 21:55:32
 */
public class BaseException extends RuntimeException {

    private final String code;
    private final String message;

    public BaseException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BaseException(String code, String message, Throwable e) {
        super(message, e);
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public String getCode() {
        return this.code;
    }
}
